<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmTableItemDelegate.cpp -->
  <meta name="description" content="自定义 TableView 的委托，实现行的 hover.">
  <title>QCtmTableItemDelegate Class | QCustomUi 1.19.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html">QCustomUi 1.19.0</a></li>
<li><a href="qcustomui-module.html" translate="no">QCustomUi</a></li>
<li>QCtmTableItemDelegate</li>
<li id="buildversion">QCustomUi 1.19.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#reimplemented-protected-functions">Reimplemented Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title" translate="no">QCtmTableItemDelegate Class</h1>
<!-- $$$QCtmTableItemDelegate-brief -->
<p>自定义 TableView 的委托，实现行的 hover. <a href="#details">More...</a></p>
<!-- @@@QCtmTableItemDelegate -->
<div class="table"><table class="alignedsummary requisites" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <code translate="no">#include &lt;QCtmTableItemDelegate.h&gt;</code></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> QStyledItemDelegate</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qctmtableviewbuttonsdelegate.html" translate="no">QCtmTableViewButtonsDelegate</a></p>
</td></tr>
</table></div>
<ul>
<li><a href="qctmtableitemdelegate-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmtableitemdelegate.html#QCtmTableItemDelegate" translate="no">QCtmTableItemDelegate</a></b>(QTableView *<i>parent</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qctmtableitemdelegate.html#dtor.QCtmTableItemDelegate" translate="no">~QCtmTableItemDelegate</a></b>()</td></tr>
</table></div>
<h2 id="reimplemented-protected-functions">Reimplemented Protected Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmtableitemdelegate.html#paint" translate="no">paint</a></b>(QPainter *<i>painter</i>, const QStyleOptionViewItem &amp;<i>option</i>, const QModelIndex &amp;<i>index</i>) const override</td></tr>
</table></div>
<!-- $$$QCtmTableItemDelegate-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<p><b>See also </b><a href="qctmtableview.html" translate="no">QCtmTableView</a>.</p>
<!-- @@@QCtmTableItemDelegate -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCtmTableItemDelegate[overload1]$$$QCtmTableItemDelegateQTableView* -->
<h3 class="fn" translate="no" id="QCtmTableItemDelegate"><code class="details extra" translate="no">[explicit]</code> QCtmTableItemDelegate::<span class="name">QCtmTableItemDelegate</span>(<span class="type">QTableView</span> *<i>parent</i>)</h3>
<p>构造函数 <i translate="no">parent</i>.</p>
<!-- @@@QCtmTableItemDelegate -->
<!-- $$$~QCtmTableItemDelegate[overload1]$$$~QCtmTableItemDelegate -->
<h3 class="fn" translate="no" id="dtor.QCtmTableItemDelegate"><code class="details extra" translate="no">[virtual noexcept]</code> QCtmTableItemDelegate::<span class="name">~QCtmTableItemDelegate</span>()</h3>
<p>析构函数.</p>
<!-- @@@~QCtmTableItemDelegate -->
<!-- $$$paint[overload1]$$$paintQPainter*constQStyleOptionViewItem&constQModelIndex& -->
<h3 class="fn" translate="no" id="paint"><code class="details extra" translate="no">[override virtual protected]</code> <span class="type">void</span> QCtmTableItemDelegate::<span class="name">paint</span>(<span class="type"><a href="https://doc.qt.io/qt/qpainter.html" translate="no">QPainter</a></span> *<i>painter</i>, const <span class="type"><a href="https://doc.qt.io/qt/qstyleoptionviewitem.html" translate="no">QStyleOptionViewItem</a></span> &amp;<i>option</i>, const <span class="type"><a href="https://doc.qt.io/qt/qmodelindex.html" translate="no">QModelIndex</a></span> &amp;<i>index</i>) const</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qabstractitemdelegate.html#paint" translate="no">QAbstractItemDelegate::paint</a>(QPainter *painter, const QStyleOptionViewItem &amp;option, const QModelIndex &amp;index) const.</p>
<!-- @@@paint -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
